
SET(GSL_EXT_SRCS "linalg/linalg.c"
                 "matrix/matrix.c"
                 "multimin/conjgrad_mt.c"
                 "multimin/fletcher.c"
                 "multimin/function.c"
                 "multimin/linmin.c"
                 "multimin/lrwwsimplex.c"
                 "multimin/mnewton.c"
                 "multimin/morethuente.c"
                 "multimin/multider.c"
                 "multimin/multimin.c"
                 "multimin/polyfit.c"
                 "multimin/quasinewton.c"
                 "multimin/quasinewton_matrix.c"
                 "multimin/symbolic_function.c"
                 "multimin/testfunctions.c")

INCLUDE_DIRECTORIES("../")

ADD_LIBRARY(gsl_ext SHARED ${GSL_EXT_SRCS})
TARGET_LINK_LIBRARIES(gsl_ext gsl gslcblas matheval)
INSTALL(TARGETS gsl_ext LIBRARY DESTINATION lib)

INSTALL(FILES gsl_ext_version.h DESTINATION include/gsl_ext)

ADD_SUBDIRECTORY(linalg)
ADD_SUBDIRECTORY(matrix)
ADD_SUBDIRECTORY(multimin)
